package com.hqyj.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author rock
 * @since 2023-02-27 10:43:26
 */
@Getter
@Setter
@TableName("goods_info")
public class GoodsInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 商品编号
     */
    @TableId(value = "goods_id", type = IdType.AUTO)
    private Integer goodsId;

    /**
     * 商品名称
     */
    @TableField("goods_name")
    private String goodsName;

    /**
     * 商城价格
     */
    @TableField("shop_price")
    private BigDecimal shopPrice;

    /**
     * 品牌id
     */
    @TableField("brand_id")
    private Integer brandId;

    /**
     * 商品标题
     */
    @TableField("goods_title")
    private String goodsTitle;

    /**
     * 商家ID
     */
    @TableField("seller_id")
    private Integer sellerId;

    /**
     * 商品描述
     */
    @TableField("goods_desc")
    private String goodsDesc;

    /**
     * 显示图片地址
     */
    @TableField("goods_img")
    private String goodsImg;

    /**
     * 商品类型
     */
    @TableField("goods_type_id")
    private Integer goodsTypeId;

    //商品详情
    @TableField(exist = false)
    private GoodsDetail goodsDetail;

    //商品品牌名称
    @TableField(exist = false)
    private String brandName;



}
